package com.evil.common.application.dto.judge;

import com.evil.common.application.enums.judge.JudgeSourceTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * 条件 实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class JudgesDTO extends JudgeSourceDTO {

    private Long enterpriseId;

    private List<JudgeOr> judgeOrs;

    public JudgesDTO() {
        super();
        this.judgeOrs = new ArrayList<>();
    }

    public JudgesDTO(JudgeSourceTypeEnum sourceTypeEnum, Long enterpriseId, Long sourceId, List<JudgeOr> judgeOrs) {
        super(sourceTypeEnum, sourceId);
        this.enterpriseId = enterpriseId;
        this.judgeOrs = judgeOrs;
    }
}
